package dao;

import entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    List<User> getUserList(User user);

    List<User> getUserMap(Map<String,String> map) ;

    int add(User user);

    int modify(User user);

    int updatePwd(@Param("id")Integer id,@Param("userPassword") String pwd);

    int deleteUserById(@Param("id") Integer id);

    List<User> getUserListByRoleId(@Param("userRole")Integer roleId);

    List<User> getAddressListByUserId(@Param("id")Integer id);

    int BianMadeleteUserById(@Param("id")Integer id);

    int BianMadeleteRoleById(@Param("id")Integer id);

    int BianMadeleteAddressById(@Param("id")Integer id);
}
